Let's take a look at the MongoDB copy Database Copydatabase (). To achieve the method of freeing disk space, I hope the article will help you.Db.copydatabase ("from", "to", "127.0.0.1:16161");The From library on the 127.0.0.1. Copy to the to library.
Let's take a look at the MongoDB copy Database Copydatabase ().To achieve the method of freeing disk space, I hope the article will help you.Db.copydatabase ("from", "to", "127.0.0.1:16161"); The From library on the 127.0.0.1. Copy to the to library.
If you have never been familiar with MongoDB or have a little understanding of MongoDB, if you are a C # developer, take a few minutes to read this article. This article will take you step by step to get started easily. Read directory 1:
MongoDB database OverviewMongoDB is a high-performance, open-source, and non-pattern document-type database. It can be used in many scenarios to replace the traditional relational database or key/value storage mode. MongoDB is developed in C ++
Common shell for mongodb and mongodbshell
> Use cmd_test // create a database
Switched to db pai_test
> Db. createCollection ("test") // create a table as a set.
{"OK": 1}
> Db.
Db. addUser (db. group (
Db. adminCommand (db. groupcmd (
Db. auth (db.
Common mongodb shell
> Use cmd_test // create a database switched to db cmd_test> db. createCollection ("test") // create a table is the collection {"OK": 1}> db. db. addUser (db. group (db. adminCommand (db. groupcmd (db. auth (db. groupeval (db.
Traditional relational databases are generally composed of three levels: database, table, and record,MongoDB is composed of three layers: database, collection, and document.. MongoDB has no concept of columns, rows, and links for tables in
ArticleDirectory
I. Software Packages
I. Software Packages
A) mongodb-linux-i686-static-1.8.1.tar
Ii. Installation Steps
A) tar xzf mongodb-linux-i686-static-1.8.1.tar
B) Music mongodb-linux-i686-static-1.8.1/usr/local/MongoDB
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.